package com.info.zhiduoduo.admin.model.formbean.taxer;

import com.info.zhiduoduo.common.validator.IntIn;

import java.util.Date;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
public class TaxerInoviceListFormBean {

	@ApiModelProperty("姓名")
	private String name;

	@ApiModelProperty("开始日期")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date startDate;

	@ApiModelProperty("结束日期")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date endDate;

	@IntIn(value = {0,1,2}, message = "请选择正确的状态值")
	@ApiModelProperty("状态 0:全部 1：已创建 2：已开票")
	private int state;

	@ApiModelProperty("是否已经支付了开票服务费 0:全部 1：否 2：是")
	private Integer paidState;

	@IntIn(value = {0,1,2}, message = "请选择合适的发票类型")
	@ApiModelProperty("发票类型 0：全部 1：普票 2：专票")
	private Integer invoiceType;

	@ApiModelProperty("操作人员的managerid")
	private int managerid;

	@ApiModelProperty("授权")
	private  Integer auth;
}
